home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 September & October / Amiga-CD 1996 #9-10.iso / demos / storm-c / stormc / include / dos / record.h < prev    next >
C/C++ Source or Header  |  1994-03-15  |  695b  |  35 lines

  1. #ifndef DOS_RECORD_H
  2. #define DOS_RECORD_H
  3. /*
  4. **
  5. **    $VER: record.h 36.5 (12.7.90)
  6. **    Includes Release 40.15
  7. **
  8. **    include file for record locking
  9. **
  10. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13. */
  14.  
  15. #ifndef DOS_DOS_H
  16. #include "dos/dos.h"
  17. #endif
  18.  
  19. /* Modes for LockRecord/LockRecords() */
  20. #define REC_EXCLUSIVE        0
  21. #define REC_EXCLUSIVE_IMMED    1
  22. #define REC_SHARED        2
  23. #define REC_SHARED_IMMED    3
  24.  
  25. /* struct to be passed to LockRecords()/UnLockRecords() */
  26.  
  27. struct RecordLock {
  28.     BPTR    rec_FH;        /* filehandle */
  29.     ULONG    rec_Offset;    /* offset in file */
  30.     ULONG    rec_Length;    /* length of file to be locked */
  31.     ULONG    rec_Mode;    /* Type of lock */
  32. };
  33.  
  34. #endif /* DOS_RECORD_H */
  35.